hospitales <-read_csv("C:/Users/DiDi/Downloads/spda_covid19/denue_hospitales.csv")
## Rows: 234303 Columns: 42
## -- Column specification --------------------------------------------------------
## Delimiter: ","
## chr (30): clee, nom_estab, raz_social, nombre_act, per_ocu, tipo_vial, nom_v...
## dbl (12): id, codigo_act, numero_ext, numero_int, cod_postal, cve_ent, cve_m...
##
## i Use `spec()` to retrieve the full column specification for this data.
## i Specify the column types or set `show_col_types = FALSE` to quiet this message.
hospitales_1 <- hospitales %>% select(cve_ent, entidad, cve_mun, municipio, codigo_act, nombre_act, per_ocu, ageb, latitud, longitud)
### Filtrar hospitales y centros de salud física del sector privado
hospitales_2 <- hospitales_1 %>% filter (codigo_act %in% c(621111, 621113, 621115, 621398, 621491, 621610, 621991, 622111, 622311, 623111, 624231))
covid <- read_csv("C:/Users/DiDi/Downloads/spda_covid19/covid19_confirmados.csv")
## New names:
## Rows: 2457 Columns: 42
## -- Column specification
## -------------------------------------------------------- Delimiter: "," chr
## (7): mpio, hogrem2015, hogremjefmuj2015, popnoafmed2015, gini2015, popd... dbl
## (35): cve_ent, poblacion_2022, crimen_2018, crimen_2019, inclusion_fin_2...
## i Use `spec()` to retrieve the full column specification for this data. i
## Specify the column types or set `show_col_types = FALSE` to quiet this message.
## * `mar_2021` -> `mar_2021...32`
## * `mar_2021` -> `mar_2021...33`
Ver si hay NA’s
# No hay NA's en los datos
colSums(is.na(hospitales_2))
## cve_ent entidad cve_mun municipio codigo_act nombre_act per_ocu
## 0 0 0 0 0 0 0
## ageb latitud longitud
## 0 0 0
hospitales_2$clave <- NA
# 1 y 1
hospitales_2$clave <- ifelse(hospitales_2$cve_ent < 10 & hospitales_2$cve_mun < 10, paste(hospitales_2$cve_ent, hospitales_2$cve_mun, sep = "00"), hospitales_2$clave)
# 1 y 2
hospitales_2$clave <- ifelse(hospitales_2$cve_ent < 10 & hospitales_2$cve_mun >= 10 & hospitales_2$cve_mun < 100, paste(hospitales_2$cve_ent, hospitales_2$cve_mun, sep = "0"), hospitales_2$clave)
# 1 y 3
hospitales_2$clave <- ifelse(hospitales_2$cve_ent < 10 & hospitales_2$cve_mun >= 100, paste(hospitales_2$cve_ent, hospitales_2$cve_mun, sep = ""), hospitales_2$clave)
# 2 y 1
hospitales_2$clave <- ifelse(hospitales_2$cve_ent >= 10 & hospitales_2$cve_mun < 10, paste(hospitales_2$cve_ent, hospitales_2$cve_mun, sep = "00"), hospitales_2$clave)
# 2 y 2
hospitales_2$clave <- ifelse(hospitales_2$cve_ent >= 10 & hospitales_2$cve_mun < 100 & hospitales_2$cve_mun >= 10, paste(hospitales_2$cve_ent, hospitales_2$cve_mun, sep = "0"), hospitales_2$clave)
# 2 y 3
hospitales_2$clave <- ifelse(hospitales_2$cve_ent >= 10 & hospitales_2$cve_mun >= 100, paste(hospitales_2$cve_ent, hospitales_2$cve_mun, sep = ""), hospitales_2$clave)
covid$poblacion_2022 <- as.numeric(covid$poblacion_2022)
covid$hogrem2015 <- as.numeric(covid$hogrem2015)
covid$hogremjefmuj2015 <- as.numeric(covid$hogremjefmuj2015)
covid$popnoafmed2015 <- as.numeric(covid$popnoafmed2015)
covid$gini2015 <- as.numeric(covid$gini2015)
covid$popden2020 <- as.numeric(covid$popden2020)
Reemplazamos valores nulos con la mediana
covid <- covid %>% mutate(across(where(is.numeric), ~replace_na(., median(., na.rm=TRUE))))
hospitales_2$municipio <- as.factor(hospitales_2$municipio)
count_hospitales <- hospitales_2[ , c(11)] %>% group_by(clave) %>% count(clave) %>% rename("hosp_num" = "n")
covid_2 <- merge(covid, count_hospitales, by.x = "cve_ent", by.y = "clave", all.x=TRUE)
municipio_estado <-read_csv("rangos_pobreza_loc_urbana_2020.csv")
## Rows: 5242 Columns: 3
## -- Column specification --------------------------------------------------------
## Delimiter: ","
## chr (2): entidad, municipio
## dbl (1): clave_municipio
##
## i Use `spec()` to retrieve the full column specification for this data.
## i Specify the column types or set `show_col_types = FALSE` to quiet this message.
municipio_estado <- municipio_estado %>% select(clave_municipio,entidad)
Contamos con una base de datos que nos ayudará a identificar el municipio y el estado con sus claves.
covid_2 <- merge(covid_2, municipio_estado, by.x = "cve_ent", by.y = "clave_municipio", all.x=TRUE)
covid_2 <- distinct(covid_2)
covid_2$hosp_num[is.na(covid_2$hosp_num)] <- 0
Asignamos 0 a los municipios sin hospitales.
sapply(covid_2, function(x) sum(is.na(x)))
## cve_ent mpio
## 0 0
## poblacion_2022 hogrem2015
## 0 0
## hogremjefmuj2015 popnoafmed2015
## 0 0
## gini2015 popden2020
## 0 0
## crimen_2018 crimen_2019
## 0 0
## inclusion_fin_2019 porcentaje_pob_pobreza
## 0 0
## porcentaje_pob_pobreza_ext porcentaje_pob_servicios_salud
## 0 0
## porcentaje_pob_acceso_ss pob_6-14_no_edu
## 0 0
## rezago_social grado_rs
## 0 0
## feb_2020 march_2020
## 0 0
## april_2020 may_2020
## 0 0
## june_2020 july_2020
## 0 0
## august_2020 sept_2020
## 0 0
## oct_2020 nov_2020
## 0 0
## dic_2020 jan_2021
## 0 0
## feb_2021 mar_2021...32
## 0 0
## mar_2021...33 april_2021
## 0 0
## may_2021 june_2021
## 0 0
## july_2021 august_2021
## 0 0
## sept_2021 oct_2021
## 0 0
## nov_2021 dic_2021
## 0 0
## hosp_num entidad
## 0 0
covid_2$hosp_numx10000 <- covid_2$hosp_num * 10000 / covid_2$poblacion_2022
#Run once!!
covid_2 <- covid_2[ , -33]
columnas2020 <- covid_2[ , c(19:29)]
columnas2021 <- covid_2[ , c(30:41)]
covid_2$total2020 <- rowSums(columnas2020)
covid_2$total2021 <- rowSums(columnas2021)
## Promedio de ambas columnas 2020 y 2021
covid_2$avg_casos <- rowMeans(covid_2[, c(45,46)], na.rm=TRUE)
## Casos de Covid por cada 10,000 habitantes
covid_2$casosx10mil <- (covid_2$avg_casos/covid_2$poblacion_2022) * 10000
covid_2$hogrem2015 <- covid_2$hogrem2015 / 100
covid_2$hogremjefmuj2015 <- covid_2$hogremjefmuj2015 / 100
covid_2$popnoafmed2015 <- covid_2$popnoafmed2015 / 100
covid_2$inclusion_fin_2019 <- covid_2$inclusion_fin_2019 / 100
covid_2$porcentaje_pob_pobreza <- covid_2$porcentaje_pob_pobreza / 100
covid_2$porcentaje_pob_pobreza_ext <- covid_2$porcentaje_pob_pobreza_ext / 100
covid_2$porcentaje_pob_servicios_salud <- covid_2$porcentaje_pob_servicios_salud / 100
covid_2$porcentaje_pob_acceso_ss <- covid_2$porcentaje_pob_acceso_ss / 100
covid_2$'pob_6-14_no_edu' <- covid_2$'pob_6-14_no_edu' / 100
Se realizarán dos modelos para determinar las variables con mayor significancia.
covid_boost <- covid_2[c('poblacion_2022','hogrem2015','hogremjefmuj2015',
'popnoafmed2015','gini2015','popden2020','crimen_2019',
'inclusion_fin_2019','porcentaje_pob_pobreza',
'porcentaje_pob_pobreza_ext','porcentaje_pob_servicios_salud',
'porcentaje_pob_acceso_ss','pob_6-14_no_edu','rezago_social',
'grado_rs','casosx10mil','hosp_numx10000')]
XGboost
library(caret)
## Loading required package: lattice
##
## Attaching package: 'caret'
## The following object is masked from 'package:purrr':
##
## lift
library(xgboost)
##
## Attaching package: 'xgboost'
## The following object is masked from 'package:dplyr':
##
## slice
regressor=train(casosx10mil ~ ., data= covid_boost, method = "xgbTree",trControl = trainControl("cv", number = 10))
## [12:12:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:38] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:38] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:12:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:07] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:07] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:09] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:09] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:11] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:11] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:13:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:38] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:38] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:38] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:38] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:39] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:40] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:41] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:42] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:43] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:44] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:45] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:46] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:47] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:48] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:49] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:50] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:51] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:52] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:53] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:54] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:55] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:56] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:57] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:58] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:14:59] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:00] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:01] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:02] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:03] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:04] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:05] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:06] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:07] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:07] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:07] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:07] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:09] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:09] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:09] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:09] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:10] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:11] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:11] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:11] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:11] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:12] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:13] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:14] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:15] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:16] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:17] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:18] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:19] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:20] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:21] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:23] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:24] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:25] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:26] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:28] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:29] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:30] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:31] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:32] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:33] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:34] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:35] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:36] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
## [12:15:37] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
varImp(regressor)
## xgbTree variable importance
##
## Overall
## rezago_social 100.000
## popden2020 68.512
## porcentaje_pob_pobreza 61.663
## porcentaje_pob_acceso_ss 59.637
## poblacion_2022 48.174
## hogrem2015 29.112
## hosp_numx10000 22.770
## inclusion_fin_2019 21.107
## hogremjefmuj2015 17.356
## gini2015 14.016
## `pob_6-14_no_edu` 13.342
## porcentaje_pob_servicios_salud 9.181
## crimen_2019 8.623
## popnoafmed2015 8.580
## porcentaje_pob_pobreza_ext 8.168
## grado_rsBajo 0.000
## grado_rsMuy alto 0.000
## grado_rsMedio 0.000
## grado_rsMuy bajo 0.000
Random Forest
library(janitor)
## Warning: package 'janitor' was built under R version 4.1.3
##
## Attaching package: 'janitor'
## The following objects are masked from 'package:stats':
##
## chisq.test, fisher.test
covid_tree <- clean_names(covid_boost)
regressor_2 <- train(casosx10mil ~ ., data= covid_tree, method = 'rpart2',preProcess = c("center", "scale"),na.action=na.pass)
varImp(regressor_2)
## rpart2 variable importance
##
## Overall
## rezago_social 100.000
## popden2020 77.121
## hogrem2015 63.837
## porcentaje_pob_pobreza 61.247
## porcentaje_pob_acceso_ss 57.613
## poblacion_2022 36.470
## crimen_2019 30.080
## porcentaje_pob_servicios_salud 28.450
## hogremjefmuj2015 27.449
## grado_rsMuy bajo 24.294
## inclusion_fin_2019 21.070
## porcentaje_pob_pobreza_ext 18.592
## grado_rsBajo 14.674
## popnoafmed2015 14.112
## pob_6_14_no_edu 12.373
## hosp_numx10000 6.793
## grado_rsMedio 0.000
## `grado_rsMuy alto` 0.000
## gini2015 0.000
## `grado_rsMuy bajo` 0.000
Después de ver aplicado el método de xgboost y random forest, llegamos que las variables significantes para el análisis espacial sería:
covid_2 <- covid_2[c('cve_ent','mpio','entidad','rezago_social','popden2020','porcentaje_pob_acceso_ss','porcentaje_pob_pobreza','hogrem2015','hosp_numx10000','casosx10mil','cve_ent')]
Filtraremos para solo tener los municipios de la zona centro.
zona_centro <- covid_2 %>% filter (entidad %in% c("Ciudad de Mexico", "Mexico", "Guanajuato", "Hidalgo", "Morelos","Puebla", "Queretaro", "Tlaxcala"))
ggplot(data=zona_centro, aes(x=entidad, y=hosp_numx10000)) +
geom_bar(stat="identity")
Observamos que el estado con mayor número de hospitales privados por 10,000 habitantes son Puebla, seguido por el Estado de México. El menor es Querétaro seguido por la Ciudad de México.
ggplot(data=zona_centro, aes(x=entidad, y=casosx10mil, fill=casosx10mil)) +
geom_bar(stat="identity")
En cuanto a los casos por habitantes vemos que el Estado de México cuenta con el mayor número de casos, algo que se repite en cuanto a la gráfica anterior de hospitales. Después contamos con la CDMX y Guanajuato. Vemos que en la CDMX en general todas las alcaldías cuentan con altos casos de covid, mientras que en el resto de estados existen outliers de municipios con altos casos. El estado con menor número es Querétaro, el estado que también cuenta con menos hospitales.
ggplot(data=zona_centro, aes(x=entidad, y=popden2020, fill=popden2020)) +
geom_bar(stat="identity")
En esta gráfica vemos algo muy similar a la anterior, donde destacan el
Edo. de México y la CDMX. Así mismo, el estado con menor densidad es
Querétaro, quien también es el que cuenta con menos casos de covid.
ggplot(data=zona_centro, aes(x=entidad, y=porcentaje_pob_acceso_ss, fill=porcentaje_pob_acceso_ss)) +
geom_bar(stat="identity")
En este caso vemos que el estado que cuenta con más población sin acceso a Seguridad Social es Puebla, donde en general existen muchos municipios con esta problemática. Llama la atención la CDMX donde en general su población cuenta con un alto acceso, sin embargo, cuenta con altos casos de covid. Esto puede ser debido a que cuenta con muchas instituciones que puedan reportar los casos.
ggplot(data=zona_centro, aes(x=entidad, y=porcentaje_pob_pobreza, fill=porcentaje_pob_pobreza)) +
geom_bar(stat="identity")
En este caso la gráfica es muy similar a la anterior, podemos notar
entonces que ente mayor sea la pobrza parece ser que también es menor el
acceso a servicios de seguridad social.
zona_centro_cdmx <- zona_centro %>% filter (entidad %in% c("Ciudad de Mexico"))
zona_centro_cdmx
## cve_ent mpio entidad rezago_social popden2020
## 1 9002 Azcapotzalco Ciudad de Mexico -1.39 4526.846
## 2 9003 Coyoacan Ciudad de Mexico -1.45 18434.102
## 3 9004 Cuajimalpa de Morelos Ciudad de Mexico -1.28 8195.830
## 4 9005 Gustavo A. Madero Ciudad de Mexico -1.30 21843.797
## 5 9006 Iztacalco Ciudad de Mexico -1.39 5754.886
## 6 9007 Iztapalapa Ciudad de Mexico -1.24 56489.740
## 7 9008 La Magdalena Contreras Ciudad de Mexico -1.26 2842.750
## 8 9009 Milpa Alta Ciudad de Mexico -0.85 6618.478
## 9 9010 Alvaro Obregon Ciudad de Mexico -1.32 6730.525
## 10 9011 Tlahuac Ciudad de Mexico -1.18 6211.927
## 11 9012 Tlalpan Ciudad de Mexico -1.27 15180.738
## 12 9013 Xochimilco Ciudad de Mexico -1.08 1542.780
## 13 9014 Benito Juarez Ciudad de Mexico -1.55 5082.082
## 14 9015 Cuauhtemoc Ciudad de Mexico -1.41 1761.304
## 15 9016 Miguel Hidalgo Ciudad de Mexico -1.42 12349.398
## 16 9017 Venustiano Carranza Ciudad de Mexico -1.36 3777.159
## porcentaje_pob_acceso_ss porcentaje_pob_pobreza hogrem2015 hosp_numx10000
## 1 0.3517 0.2419 0.02059 6.218768
## 2 0.4069 0.2708 0.01661 7.460383
## 3 0.4668 0.3248 0.01500 11.510993
## 4 0.4243 0.3378 0.01974 7.485342
## 5 0.4096 0.2520 0.01452 6.119531
## 6 0.5429 0.4389 0.01576 4.797442
## 7 0.4820 0.4250 0.01333 12.686266
## 8 0.7165 0.5469 0.00892 5.524822
## 9 0.4736 0.3769 0.01769 5.969264
## 10 0.5490 0.4241 0.01744 5.182958
## 11 0.5274 0.3970 0.01542 9.234368
## 12 0.5872 0.4819 0.01388 5.190642
## 13 0.3260 0.0788 0.01925 17.384969
## 14 0.4232 0.2089 0.01917 30.477246
## 15 0.3391 0.1347 0.01559 19.756391
## 16 0.4521 0.2999 0.01783 6.416900
## casosx10mil cve_ent.1
## 1 638.8438 9002
## 2 441.4167 9003
## 3 477.1557 9004
## 4 495.3792 9005
## 5 512.7583 9006
## 6 436.7324 9007
## 7 600.0277 9008
## 8 756.4701 9009
## 9 975.4916 9010
## 10 714.9618 9011
## 11 757.4674 9012
## 12 642.8981 9013
## 13 403.3820 9014
## 14 481.2926 9015
## 15 445.2168 9016
## 16 547.2369 9017
Numero de casos por la cantidad de hospitales
ggplot(data=zona_centro_cdmx, aes(x=mpio, y=hosp_numx10000, fill=casosx10mil)) +
geom_bar(stat="identity") +
theme(axis.text.x = element_text(angle = 30, hjust = 0.5, vjust = 0.5))
Observamos que en la CDMX Cuajimalpa de Morelos cuenta con la mayor cantidad de hopitales privados seguido por La Magdalena Contreras. En cuanto a casos, Alvaro Obregón es donde se cuenta con más y donde menos es Azcapotzalco.
zona_centro_mexico <- zona_centro %>% filter (entidad %in% c("Mexico"))
ggplot(data=zona_centro_mexico, aes(x=mpio, y=hosp_numx10000, fill=casosx10mil)) +
geom_bar(stat="identity") +
theme(axis.text.x = element_text(angle = 30, hjust = 0.5, vjust = 0.5))
Podemos observar que existe mucha variedad en la cantidad de municipios con una densidad de hospitales privados muchos mayores, lo cual podría estar relacionado con la situación socioeconómica.
zona_centro_morelos <- zona_centro %>% filter (entidad %in% c("Morelos"))
ggplot(data=zona_centro_morelos, aes(x=mpio, y=hosp_numx10000, fill=casosx10mil)) +
geom_bar(stat="identity") +
theme(axis.text.x = element_text(angle = 30, hjust = 0.5, vjust = 0.5))
En este caso Coatlan del Rio , Ayala y Zaculpan son los municipios con más hospitales, de estos destaca que Coatlan es uno de los municipios con mayor densidad de casos de covid junto a Zacatepec.
zona_centro_guanajuato <- zona_centro %>% filter (entidad %in% c("Guanajuato"))
ggplot(data=zona_centro_guanajuato, aes(x=mpio, y=hosp_numx10000, fill=casosx10mil)) +
geom_bar(stat="identity") +
theme(axis.text.x = element_text(angle = 30, hjust = 0.5, vjust = 0.5))
Podemos observar que existe mucha variedad en la cantidad de municipios con una densidad de hospitales privados muchos mayores, lo cual podría estar relacionado con la situación socioeconómica.
zona_centro_hidalgo <- zona_centro %>% filter (entidad %in% c("Hidalgo"))
ggplot(data=zona_centro_hidalgo, aes(x=mpio, y=hosp_numx10000, fill=casosx10mil)) +
geom_bar(stat="identity") +
theme(axis.text.x = element_text(angle = 30, hjust = 0.5, vjust = 0.5))
Podemos observar que existe mucha variedad en la cantidad de municipios
con una densidad de hospitales privados muchos mayores, lo cual podría
estar relacionado con la situación socioeconómica.
boxplot(covid_2$porcentaje_pob_pobreza)
Observamos que la mediana se encuentra al rededor del 60%, pero vemos que el tercer cuartil se encuentra en el 80% y el primero en el 50%, por lo que existe mucha pobreza.
boxplot(covid_2$rezago_social)
En este caso la media es al rededor de 0, el cual es la media de la escala, pero existen outliers donde el rezago social es hasta 6, lo cual es muy alto.
boxplot(covid_2$porcentaje_pob_acceso_ss)
Observamos que la mediana se encuentra al rededor del 70%, pero vemos
que el tercer cuartil se encuentra en el 80% y el primero en el 65%.
Existen outliers entre el 20 y 40%, lo que significa que es un acceso
muy pequeño a la seguridad social.
boxplot(covid_2$hogrem2015)
Observamos que la mediana se encuentra al rededor del 0.06%, pero vemos que el tercer cuartil se encuentra en el 12% y el primero en el 0.02%. Existen outliers entre el 25 y 50%, lo que significa que en general la mayoría de los municipios tienen menos del 10% con hogares con remesas, pero hay algunos con una proporción muy alta.
library(maptools)
## Warning: package 'maptools' was built under R version 4.1.3
## Loading required package: sp
## Warning: package 'sp' was built under R version 4.1.3
## Checking rgeos availability: TRUE
## Please note that 'maptools' will be retired during 2023,
## plan transition at your earliest convenience;
## some functionality will be moved to 'sp'.
library(sf)
## Warning: package 'sf' was built under R version 4.1.2
## Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1
library(sp)
map <- readShapePoly("C:/Users/DiDi/Downloads/spda_covid19/shp_mx_mpios/mx_mpios.shp",IDvar="IDUNICO",proj4string=CRS("+proj=longlat"))
## Warning: shapelib support is provided by GDAL through the sf and terra packages
## among others
library(sf)
map_2 <- read_sf("C:/Users/DiDi/Downloads/spda_covid19/shp_mx_mpios/mx_mpios.shp")
covid_3 <- zona_centro[c('rezago_social','popden2020','porcentaje_pob_acceso_ss',
'porcentaje_pob_pobreza','hogrem2015','hosp_numx10000','casosx10mil','cve_ent')]
lmat <- coordinates(map)
names(lmat) <- c("lon","lat")
map.centroid <- coordinates(map)
summary(map)
## Object of class SpatialPolygonsDataFrame
## Coordinates:
## min max
## x -118.4076 -86.71041
## y 14.5321 32.71865
## Is projected: FALSE
## proj4string : [+proj=longlat +datum=WGS84 +no_defs]
## Data attributes:
## CODELAG CVE_ENT IDUNICO
## Min. : 1.0 Min. : 1.00 Min. : 1001
## 1st Qu.: 614.8 1st Qu.:14.00 1st Qu.:14084
## Median :1228.5 Median :20.00 Median :20231
## Mean :1228.5 Mean :19.26 Mean :19367
## 3rd Qu.:1842.2 3rd Qu.:24.00 3rd Qu.:24030
## Max. :2456.0 Max. :32.00 Max. :32058
plot(map, col = "grey", border="blue", axes=TRUE,las=1) +
title(main= "Mexico's Municipalities")
## integer(0)
covid_3$IDUNICO <- covid_3$cve_ent
library(tigris)
## To enable caching of data, set `options(tigris_use_cache = TRUE)`
## in your R script or .Rprofile.
options(tigris_use_cache = TRUE)
map_3 <-right_join(map_2,covid_3,by='IDUNICO')
covid_2$IDUNICO <- covid_2$cve_ent
map_4 <-right_join(map_2,covid_2,by='IDUNICO')
names(map_3)
## [1] "CODELAG" "CVE_ENT"
## [3] "IDUNICO" "geometry"
## [5] "rezago_social" "popden2020"
## [7] "porcentaje_pob_acceso_ss" "porcentaje_pob_pobreza"
## [9] "hogrem2015" "hosp_numx10000"
## [11] "casosx10mil" "cve_ent"
map_3$rezago_social <- as.integer(map_3$rezago_social)
map_4$rezago_social <- as.integer(map_4$rezago_social)
map_4 <- map_4[!is.na(map_4$CODELAG),]
Casos Covid por 10K Habitantes
library(tmap)
## Warning: package 'tmap' was built under R version 4.1.3
tm_shape(map_4) +
tm_polygons("casosx10mil",
style="quantile",
palette = c("lightyellow", "darkred"),
title="\nCasos \npor 10K habitantes")
Podemos ver que en México regiones como el Noroeste, el Noreste, la CDMX
Y Guanajuato contaron con altos niveles de Covid. Por el contrario,
algunas regiones del centro y del sur como Chiapas y Puebla contaron con
bajos casos. Ya centrados en nuestra región vemos que la CDMX es una de
las zona con mayor tasa de casos.
tm_shape(map_3) +
tm_polygons("casosx10mil",
style="quantile",
palette = c("lightyellow", "darkred"),
title="\nCasos \npor 10K habitantes")
Observamos que en los municipios del Noreste y del centro de la región es donde existen más casos por 10K habitantes. Al este es donde existen menos, mientras que en el centro hay media de cantidad. Observamos que en Guanajuato existen niveles muy altos de Covid, algo que también se ve en el Edo. de México y la CDMX. En cuanto a Puebla es donde vemos menos casos.
Densidad Poblacional
tm_shape(map_4) +
tm_polygons("popden2020",
style="quantile",
title="\nDensidad Poblacional")
En cuanto a la densidad poblacional, vemos que a nivel nacional el centro y el sur es donde vemos una mayor densidad. En cuanto a nuestra región, podemos destacar que el centro es una de las zonas con mayor densidad en todo México.
tm_shape(map_3) +
tm_polygons("popden2020",
style="quantile",
title="\nDensidad Poblacional")
En cuanto a la densidad poblacional podemos observar que en el centro también existe una densidad muy alta, al igual que en algunos municipios del noreste. El sureste es donde existe una menor cantidad. Esto es algo similar al mapa anterior. Por lo tanto por ahora podríamos relacionar la densidad de la CDMX, Guanajuato y el Edo. de México con los altos niveles de covid.
Número de hospitales
tm_shape(map_4) +
tm_polygons("hosp_numx10000",
style="quantile",
palette = c("lightyellow", "yellow", "darkgreen"),
title="\nHospitales por \n10K Habitantes")
En cuanto al número de hospitales vemos que este varía mucho a nivel
región debido a que las capitales y ciudades grandes cuentan con mayor
número de instituciones privadas. Sin embargo, también podemos ver que
en el centro existen partes como la CDMX y Guanajuato donde en general
existe un mayor número.
tm_shape(map_3) +
tm_polygons("hosp_numx10000",
style="quantile",
palette = c("lightyellow", "yellow", "darkgreen"),
title="\nHospitales por \n10K Habitantes")
En este caso observamos que la cantidad de lugares donde existen más
hospitales privados es en el noreste y el centro, además de unos lugares
del sureste. Esto se relaciona mucho con la densidad poblacional,
indicándonos que son ciudades grandes donde hay más hospitales y casos.
Esto sucede sobre todo en Guanajuato, donde vemos muchos hospitales
privados, pero también muchos casos. La situación de los casos en CDMX y
Guanajuato podrían relacionarse a que existen muchas instituciones que
detecten y reporten casos.
Rezago Social
tm_shape(map_3) +
tm_polygons("rezago_social",
style="quantile",
title="\nRezago Social")
## Variable(s) "rezago_social" contains positive and negative values, so midpoint is set to 0. Set midpoint = NA to show the full spectrum of the color palette.
En cuanto al rezago, vemos que también son los municipios del noreste y centro donde existe menor rezago. Podemos ver que en las ciudades donde existe una mayor densidad poblacional es donde hay menor rezago. Así mismo, CDMX y Guanajuato es donde vemos menor rezago social, pero al mismo tiempo es donde observamos un mayor número de casos.
Porcentaje sin acceso a Seguridad Social
tm_shape(map_4) +
tm_polygons("porcentaje_pob_acceso_ss",
style="quantile",
palette = c("darkgreen","yellow", "red"),
title="\nPorcentaje de la \nPoblación sin Acceso \na Seguridad Social")
En este mapa podemos observar que n el norte es donde vemos que existe
un mayo acceso, mientras que en el centro y el sur del país es donde
existe menos. Existen excepciones como Guanajuato y CDMX, las cuales son
regiones con alto acceso a estos servicios.
tm_shape(map_3) +
tm_polygons("porcentaje_pob_acceso_ss",
style="quantile",
palette = c("darkgreen","yellow", "red"),
title="\nPorcentaje de la \nPoblación sin Acceso \na Seguridad Social")
En cuanto a la población con acceso a Seguridad Social, es muy similar donde los municipios con mayor densidad es donde existe mayor acceso y menor rezago social, así como más casos de covid. Esto sucede en estados como Guanajuato y CDMX. Puebla cuenta con menos casos, pero también menor acceso a seguridad social. Debido a esto es que podemos empezar a pensar en una hipótesis de que sin instituciones de salud es más difícil reportar casos, lo que hace aparentar que en estas zonas existen menos casos.
Hogares que reciben remesas
tm_shape(map_4) +
tm_polygons("hogrem2015",
style="quantile",
palette = c("lightyellow","darkgreen"),
title="\nPorcentaje de Hogares \nque Recibieron Remesas")
En este caso podemos observar que a nivel nacional muchos municipios del centro y el noroeste reciben alto porcentaje de las remesas. Podemos ver que en el centro esto sucede principalmente en los estados situados en el centro oeste, como Jalisco, Colima y Guanajuato. Estados como Chiapas y Campeche son de los que reciben menos.
tm_shape(map_3) +
tm_polygons("hogrem2015",
style="quantile",
palette = c("lightyellow","darkgreen"),
title="\nPorcentaje de Hogares \nque Recibieron Remesas")
En cuanto a los hogares con remesas, llama la atención que el centro
recibe un muy pequeño porcentaje de remesas. Parece ser que esto varía
mucho de estado a estado y podría relacionarse con variables culturales
que no hemos estudiado.
Porcentaje pobreza
tm_shape(map_3) +
tm_polygons("porcentaje_pob_pobreza",
style="quantile",
title="\nPorcentaje de la Pob. \nen Situación de Pobreza")
En cuanto a la pobreza, vemos que al este y sureste existen los
municipios con mayor porcentaje, de nuevo, parece que variables que
varían de estado a estado afectan mucho este indicador. Vemos que el
noreste e donde existe menor porcentaje. De nuevo, vemos que en Puebla
existe mucha pobreza, pero pocos casos de covid y que lo contrario
sucede en estados como Guanajuato y la CDMX. En otros como el Estado de
México varía mucho la situación socioeconómica.
library(spdep)
## Warning: package 'spdep' was built under R version 4.1.3
## Loading required package: spData
## Warning: package 'spData' was built under R version 4.1.3
## To access larger datasets in this package, install the spDataLarge
## package with: `install.packages('spDataLarge',
## repos='https://nowosad.github.io/drat/', type='source')`
library(spData)
library(foreign)
library(ggplot2)
library(spdep)
library(spmoran)
## Warning: package 'spmoran' was built under R version 4.1.3
library(spatialreg)
## Warning: package 'spatialreg' was built under R version 4.1.3
## Loading required package: Matrix
## Warning: package 'Matrix' was built under R version 4.1.1
##
## Attaching package: 'Matrix'
## The following objects are masked from 'package:tidyr':
##
## expand, pack, unpack
##
## Attaching package: 'spatialreg'
## The following objects are masked from 'package:spdep':
##
## get.ClusterOption, get.coresOption, get.mcOption,
## get.VerboseOption, get.ZeroPolicyOption, set.ClusterOption,
## set.coresOption, set.mcOption, set.VerboseOption,
## set.ZeroPolicyOption
library(maptools)
library(mapproj)
## Warning: package 'mapproj' was built under R version 4.1.3
## Loading required package: maps
## Warning: package 'maps' was built under R version 4.1.3
##
## Attaching package: 'maps'
## The following object is masked from 'package:purrr':
##
## map
library(sp)
library(maps)
library(rgeos)
## Warning: package 'rgeos' was built under R version 4.1.3
## rgeos version: 0.6-2, (SVN revision 693)
## GEOS runtime version: 3.10.2-CAPI-1.16.0
## Please note that rgeos will be retired during 2023,
## plan transition to sf functions using GEOS at your earliest convenience.
## GEOS using OverlayNG
## Linking to sp version: 1.6-0
## Polygon checking: TRUE
library(ggmap)
## Warning: package 'ggmap' was built under R version 4.1.3
## i Google's Terms of Service: <]8;;https://mapsplatform.google.comhttps://mapsplatform.google.com]8;;>
## i Please cite ggmap if you use it! Use `citation("ggmap")` for details.
library(mapproj)
library(RColorBrewer)
library(rgdal)
## Warning: package 'rgdal' was built under R version 4.1.3
## Please note that rgdal will be retired during 2023,
## plan transition to sf/stars/terra functions using GDAL and PROJ
## at your earliest convenience.
## See https://r-spatial.org/r/2022/04/12/evolution.html and https://github.com/r-spatial/evolution
## rgdal: version: 1.6-6, (SVN revision 1201)
## Geospatial Data Abstraction Library extensions to R successfully loaded
## Loaded GDAL runtime: GDAL 3.4.1, released 2021/12/27
## Path to GDAL shared files: C:/Users/DiDi/Documents/R/win-library/4.1/rgdal/gdal
## GDAL binary built with GEOS: TRUE
## Loaded PROJ runtime: Rel. 7.2.1, January 1st, 2021, [PJ_VERSION: 721]
## Path to PROJ shared files: C:/Users/DiDi/Documents/R/win-library/4.1/rgdal/proj
## PROJ CDN enabled: FALSE
## Linking to sp version:1.6-0
## To mute warnings of possible GDAL/OSR exportToProj4() degradation,
## use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
library(scales)
## Warning: package 'scales' was built under R version 4.1.3
##
## Attaching package: 'scales'
## The following object is masked from 'package:purrr':
##
## discard
## The following object is masked from 'package:readr':
##
## col_factor
library(ggsn)
## Warning: package 'ggsn' was built under R version 4.1.3
## Loading required package: grid
map1 <-map[map$CVE_ENT == 9|map$CVE_ENT == 15|map$CVE_ENT == 17|map$CVE_ENT == 22|map$CVE_ENT == 11|map$CVE_ENT == 29|map$CVE_ENT == 21|map$CVE_ENT == 13,]
lmat <- coordinates(map1)
names(lmat) <- c("lon","lat")
map.centroid <- coordinates(map1)
map.link_a_queen<-poly2nb(map1,queen=T)
map.linkW_a_queen<-nb2listw(map.link_a_queen, style="W")
plot(map1,border="blue",axes=TRUE,las=1)
plot(map1,col="grey",border=grey(0.11),axes=T,add=T)
plot(map.linkW_a_queen,coords=map.centroid,pch=19,cex=0.1,col="red",add=T)
title("SWM -CONNECTIVITY MATRIX Zona Centro")
box()
map.link_a_queen<-poly2nb(map1,queen=T)
map.linkW_a_queen<-nb2listw(map.link_a_queen, style="W")
plot(map1,border="blue",axes=TRUE,las=1)
plot(map1,col="grey",border=grey(0.11),axes=T,add=T)
plot(map.linkW_a_queen,coords=map.centroid,pch=19,cex=0.1,col="red",add=T)
title("SWM -CONNECTIVITY MATRIX Zona Centro")
box()
#Correlación espacial global
map.link_a_queen1<-poly2nb(map_3,queen=T)
map.linkW_a_queen1<-nb2listw(map.link_a_queen1, style="W")
# Calcular el global moran
globalMoran <- moran.mc(map_3$casosx10mil, map.linkW_a_queen1, nsim = 9999)
globalMoran #importante el statistic y el p-value
##
## Monte-Carlo simulation of Moran I
##
## data: map_3$casosx10mil
## weights: map.linkW_a_queen1
## number of simulations + 1: 10000
##
## statistic = 0.63744, observed rank = 10000, p-value = 1e-04
## alternative hypothesis: greater
Observamos que existe un Global Moral de 0.63, lo que nos indica que sí existe una correlación espacial en cuanto a los casos por 10 mil habitantes en nuestra región y que es media-alta. Esto es algo que ya habíamos empezado a ver en los mapas debido a la situación de estado a estado. Esto fue realizado usando el método de Queen y podría indicarnos que debido a variables como las decisiones de los gobiernos locales en cuanto a SS y reportes de casos es que existe esta autocorrelación la cual es media-alta.
map.link_a_queen1<-poly2nb(map_3,queen=T)
map.linkW_a_queen1<-nb2listw(map.link_a_queen1, style="W")
# Calcular el global moran
globalMoran <- moran.mc(map_3$hosp_numx10000, map.linkW_a_queen1, nsim = 9999)
globalMoran #importante el statistic y el p-value
##
## Monte-Carlo simulation of Moran I
##
## data: map_3$hosp_numx10000
## weights: map.linkW_a_queen1
## number of simulations + 1: 10000
##
## statistic = 0.19336, observed rank = 10000, p-value = 1e-04
## alternative hypothesis: greater
En este caso vemos que la autocorrelación es muy baja con tan solo 0.19, esto nos indica que el número de hospitales no está muy correlacionado con su distribución espacial y que existen otros factores más importantes a la hora de determinar el número de hospitales como la densidad poblacional.
map.link_a_queen1<-poly2nb(map_3,queen=T)
map.linkW_a_queen1<-nb2listw(map.link_a_queen1, style="W")
# Calcular el global moran
globalMoran <- moran.mc(map_3$rezago_social, map.linkW_a_queen1, nsim = 9999)
globalMoran #importante el statistic y el p-value
##
## Monte-Carlo simulation of Moran I
##
## data: map_3$rezago_social
## weights: map.linkW_a_queen1
## number of simulations + 1: 10000
##
## statistic = 0.54289, observed rank = 10000, p-value = 1e-04
## alternative hypothesis: greater
En este caso observamos que el rezago social sí muestra una autocorrelación alta, esto puede ser por la administración de un estado o a que los municipios de niveles altos y bajos de rezago se encuentran agrupados en zonas específicas haciendo clústers dependiendo del rezago social.
map.link_a_queen1<-poly2nb(map_3,queen=T)
map.linkW_a_queen1<-nb2listw(map.link_a_queen1, style="W")
# Calcular el global porcent
globalMoran <- moran.mc(map_3$porcentaje_pob_acceso_ss, map.linkW_a_queen1, nsim = 9999)
globalMoran #importante el statistic y el p-value
##
## Monte-Carlo simulation of Moran I
##
## data: map_3$porcentaje_pob_acceso_ss
## weights: map.linkW_a_queen1
## number of simulations + 1: 10000
##
## statistic = 0.59907, observed rank = 10000, p-value = 1e-04
## alternative hypothesis: greater
En este caso vemos de nuevo una de las autocorrelaciones más altas al tomar en cuenta el acceso a servicios de seguridad social. Esto podría indicarnos cosas como que zonas en específico cuentan con alto o bajo acceso debido a la administración gubernamental o a que existen clústers de rezago social alto.
library(rgeoda)
## Warning: package 'rgeoda' was built under R version 4.1.3
## Loading required package: digest
##
## Attaching package: 'rgeoda'
## The following object is masked from 'package:spdep':
##
## skater
queen_w<-queen_weights(map_3)
lisa_MEDV_1<-local_moran(queen_w, map_3["casosx10mil"])
#agregar los p values a la base del mapa
map_3$p_vals <-lisa_MEDV_1$p_vals
#Casos de covid por cada 10,000 habitantes
ggplot(data=map_3) +
geom_sf(aes(fill=p_vals)) +
ggtitle(label = "Autocorrelación espacial local de casos por cada 10,000 habitantes")
Vemos que en los municipios del centro y el sur es donde existe mayor correlación, mientras que en el este y noreste donde menos.
#filtrar por rezago_social
lisa_MEDV_rezago<-local_moran(queen_w, map_3["rezago_social"])
map_4 <- map_3
map_4$p_vals <-lisa_MEDV_rezago$p_vals
ggplot(data=map_4) +
geom_sf(aes(fill=p_vals)) +
ggtitle(label = "Autocorrelación espacial local de rezago social")
Vemos que en rezago social en el sureste y norte es donde hay mayor correlación espacial, en el centro es donde menos.
#filtrar por popden2020
lisa_MEDV_pop<-local_moran(queen_w, map_3["popden2020"])
map_5 <- map_3
map_5$p_vals <-lisa_MEDV_pop$p_vals
ggplot(data=map_5) +
geom_sf(aes(fill=p_vals)) +
ggtitle(label = "Autocorrelación espacial local de densidad de población")
En este caso los municipios del norte, sur y centro cuentan con una
autocorrelación muy baja
#filtrar por porcentaje_pob_acceso_ss
lisa_MEDV_acceso<-local_moran(queen_w, map_3["porcentaje_pob_acceso_ss"])
map_6 <- map_3
map_6$p_vals <-lisa_MEDV_acceso$p_vals
ggplot(data=map_6) +
geom_sf(aes(fill=p_vals)) +
ggtitle(label = "Autocorrelación espacial local de porcentaje de la población con acceso a servicio de salud")
Vemos que las autocorrelaciones más altas en cuanto al acceso a SS son al este, centro y noreste de la región.
#filtrar por porcentaje_pob_pobreza
lisa_MEDV_por_pob<-local_moran(queen_w, map_3["porcentaje_pob_pobreza"])
map_7 <- map_3
map_7$p_vals <-lisa_MEDV_por_pob$p_vals
ggplot(data=map_7) +
geom_sf(aes(fill=p_vals)) +
ggtitle(label = "Autocorrelación espacial local de porcentaje de población en pobreza")
En cuanto a la pobreza, vemos que la mayoría de las zonas cuentan con autocorrelaciones locales significativas, lo que nos indica que es uno de los factores donde importa más el espacio geográfico.
#filtrar por hogrem2015
lisa_MEDV_hogrem<-local_moran(queen_w, map_3["hogrem2015"])
map_8 <- map_3
map_8$p_vals <-lisa_MEDV_hogrem$p_vals
ggplot(data=map_8) +
geom_sf(aes(fill=p_vals)) +
ggtitle(label = "Autocorrelación espacial local de hogares que reciben remesas")
library(rgeoda)
queen_w<-queen_weights(map_3)
map_cluster <- map_3
Casos Covid nacional
Casos de Covid por cada 10,000 habitantes
ggplot(data=map_cluster_n) +
geom_sf(aes(fill=cluster_casos_n))
En este caso vemos que las zonas con clústers High-High incluyen estados
como COAH, NL, BC, BCS, GTO y CDMX. Por el contrario, estados como
PUuebla, Chiapas y Oaxaca son de donde existen clústers LOW-LOW.
map_cluster6 <- map_3
lisa_covid <-local_moran(queen_w, map_3["casosx10mil"])
map_cluster6$cluster_covid<-as.factor(lisa_covid$GetClusterIndicators())
levels(map_cluster6$cluster_covid)<-lisa_covid$GetLabels()
ggplot(data=map_cluster6) +
geom_sf(aes(fill=cluster_covid))
En cuanto a los casos de covid podemos observar que existen clústers Low
-Low principalmente en Puebla, donde podemos ver que en general el
estado reportó muy pocos casos. En cuanto a los clústers High-High los
podemos ver principalmente en la CDMX y en Guanajuato. En cuanto a
clústers más pequeños, vemos zonas en Hidalgo que reportaron niveles
bajos de Covid, así como clústers de outliers en el Edo. de México,
sobre todo en los municipios que rodean a la CDMX. Podemos ver que en
este caso tuvimos una de las regiones con mayor autocorrelación LOW-LOW
de todo México con Puebla.
Rezago Social
lisa_rezso <-local_moran(queen_w, map_3["rezago_social"])
map_cluster$cluster_rezso<-as.factor(lisa_rezso$GetClusterIndicators())
levels(map_cluster$cluster_rezso)<-lisa_rezso$GetLabels()
library(plotly)
## Warning: package 'plotly' was built under R version 4.1.3
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggmap':
##
## wind
## The following object is masked from 'package:xgboost':
##
## slice
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
ggplot(data=map_cluster) +
geom_sf(aes(fill=cluster_rezso))
En cuanto al rezago social vemos que es sobre todo en la CDMX donde vemos un clúster con un rezago social bajo. Existen por el contrario ciertos clústers High-High principalmente en Puebla y el Estado de México. Existen ciertos municipios con rezago social alto en zonas con rezago en general bajo en Guanajuato y el Estado de México. Vemos que, aunque la CDMX haya reportado muchos casos, existe muy bajo rezago social aquí. Así mismo, el clúster de Guanajuato que contó con altos casos son municipios que no pertenecen al que cuenta con alto rezago.
Densidad poblacional
ggplot(data=map_cluster1_n) +
geom_sf(aes(fill=cluster_pop_n))
Podemos observar que a nivel nacional existen clusters High-High en el
Norte del país en estados como Chihuahua, Coahuila, Nuevo León y
Tamaulipas; así com en CDMX y Quintana Roo. Algo interesante es que
varios clústers de densidad poblacional alta coinciden con los de altos
casos de covid (aunque no todos).
map_cluster1 <- map_3
lisa_pop <-local_moran(queen_w, map_3["popden2020"])
map_cluster1$cluster_pop<-as.factor(lisa_pop$GetClusterIndicators())
levels(map_cluster1$cluster_pop)<-lisa_pop$GetLabels()
ggplot(data=map_cluster1) +
geom_sf(aes(fill=cluster_pop))
Podemos ver que la CDMX cuenta con un clúster con alta densidad poblacional, algo que también podría explicar sus altos casos de Covid. Más allá de esto, existen clústers LOW-LOW principalmente en Morelos, Hidalgo, Puebla y uno en el Estado de México. Parece no existir una gran relación entre estos y el clúster de los casos de Covid.
map_cluster2 <- map_3
lisa_ppp <-local_moran(queen_w, map_3["porcentaje_pob_pobreza"])
map_cluster2$cluster_ppp<-as.factor(lisa_ppp$GetClusterIndicators())
levels(map_cluster2$cluster_ppp)<-lisa_ppp$GetLabels()
ggplot(data=map_cluster2) +
geom_sf(aes(fill=cluster_ppp))
En particular este clúster parece relacionarse mucho con el de Covid. Vemos que existe un cluster High-High en estados de Guanajuato, Querétaro, Edo. de México y la CDMX, mientras que unos Low-Low principalmente en Puebla, Morelos y uno pequeño en Hidalgo. Si lo comparamos con el de covid vemos que en los clústers de la CDMX y Guanajuato con altos casos existe bajo porcentaje de pobreza, mientras que en los clústers de Puebla e Hidalgo de bajos casos existe alto porcentaje de pobreza. Esto parecería ser contraproducente, pero es importante recordar que puede existir algún sesgo en el reporte de los casos.
Acceso a Seguridad Social
ggplot(data=map_cluster3_n) +
geom_sf(aes(fill=cluster_ppas_n))
Podemos observar que clústers donde existe un alto porcentaje HIGH-HIGH en cuanto a gente sin acceso a seguridad social existen en estados del Norte como Chihuahua, del centro como Puebla y del sur como Quintana Roo. En cuanto al centro, cuenta con algunos de los pocos clústers Low-Low del país.
map_cluster3 <- map_3
lisa_ppas <-local_moran(queen_w, map_3["porcentaje_pob_acceso_ss"])
map_cluster3$cluster_ppas<-as.factor(lisa_ppas$GetClusterIndicators())
levels(map_cluster3$cluster_ppas)<-lisa_ppas$GetLabels()
ggplot(data=map_cluster3) +
geom_sf(aes(fill=cluster_ppas))
En este caso contamos con clústers High-High en Pueb, Morelos, Estado de
México, Hidalgo. Así mismo, contamos con clústers Low-Low en Guanajuato,
la CDMX y también algunos municipios del Estado de México. Este mapa se
relaciona mucho como el de el nivel de pobreza y el rezago social,
haciéndonos ver que en lugares donde existe un rezago alto tampoco
existe acceso a la seguridad social. Por el contrario, de nuevo vemos
que en lugares como Puebla e Hidalgo con poco acceso a la seguridad
social existen bajos casos, mientras que en algunos como Guanajuato y la
CDMX con alto acceso existen muchos casos. Se puede pensar que esta
relación indica que el número de casos va a depender mucho de la
cantidad de instituciones de salud que reporten y detecten estos
casos.
map_cluster4 <- map_3
lisa_hogrem <-local_moran(queen_w, map_3["hogrem2015"])
map_cluster4$cluster_hogrem<-as.factor(lisa_hogrem$GetClusterIndicators())
levels(map_cluster4$cluster_hogrem)<-lisa_hogrem$GetLabels()
ggplot(data=map_cluster4) +
geom_sf(aes(fill=cluster_hogrem))
En este mapa en particular vemos que existen clústers con altos niveles
de hogares que reciben remes en Guanajuato, Querétaro, Higalgo y
Morelos. Por el contrario, en la CDMX, Edo. de México y Puebla contamos
con clústers Low-Low. Esto parece indicar que no existe una relación
entre esto y los casos de covid reportados.
map_cluster5 <- map_3
lisa_hosp <-local_moran(queen_w, map_3["hosp_numx10000"])
map_cluster5$cluster_hosp<-as.factor(lisa_hosp$GetClusterIndicators())
levels(map_cluster5$cluster_hosp)<-lisa_hosp$GetLabels()
ggplot(data=map_cluster5) +
geom_sf(aes(fill=cluster_hosp))
Finalmente, en cuanto al número de hospitales vemos que existen pocos clústers significativos. Algunos de los High-High se encuentran en Guanajuato y la CDMX, esto nos puede indicar que quizá en estos lugares existieron muchos hospitales privados que reportaron casos.Por el contrario, en Puebla e Hidalgo es donde vemos más clústers Low-Low.
Hallazgos: